package cn.edu.scau.cmi.dengzejun.chapter04;
import java.util.*;
import java.io.*;

public class YangHuiTriangle {
	public static void main(String agr[]) {
		Scanner reader=new Scanner(System.in);
		int x=reader.nextInt(),p=1;
		for (int i=1;i<=x;i++) {
			for (int j=1;j<=x-i;j++) {
				System.out.printf("   ");
			}
			for (int j=1;j<=i;j++) {
				System.out.printf("%-5d ",p++);
			}
			System.out.println();
		}
	}
}
